package com.zj.system.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @program: clms-seventh
 * @description: 角色表的实体类
 * @author: 张静
 * @create: 2021-07-19 19:12
 **/
@Data
@TableName("sys_role")
@ApiModel(value="Role对象", description="角色表")
public class Role {
    @TableId(value = "role_id", type = IdType.AUTO)
    @ApiModelProperty(value = "角色ID")
    private Integer roleId;
    @ApiModelProperty(value = "角色名称")
    private String roleName;
    @ApiModelProperty(value = "角色权限字符串")
    private String roleKey;
    @ApiModelProperty(value = "显示顺序")
    private Integer roleSort;
    @ApiModelProperty(value = "数据范围（1：全部数据权限 2：自定义数据权限）")
    private String dataScope;
    @ApiModelProperty(value = "角色状态（0：正常 1：停用）")
    private String status;
    @ApiModelProperty(value = "删除标志（0：存在 2：删除）")
    private String delFlag;
    @ApiModelProperty(value = "创建者")
    private String createBy;
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "更新着")
    private String updateBy;
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "备注")
    private String remark;
}
